package com.xiaoshuidi.cloud.module.member.mapper.message;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.member.controller.app.message.vo.MessageListVO;
import com.xiaoshuidi.cloud.module.member.controller.app.message.vo.MessagePageVO;
import com.xiaoshuidi.cloud.module.member.pojo.message.MemberMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MemberMessageMapper extends BaseMapperX<MemberMessage> {
    IPage<MessageListVO> getAppPage(Page<MemberMessage> memberMessagePage, @Param("vo") MessagePageVO pageVO);

    void updateUserId(@Param("oldUserId")Long oldUserId, @Param("userId")Long userId);
}
